vcRobotExecutor
vcRobotExecutor allows you to execute a robot or servo program.
See in: Overview
Module: vcRobotics
Parent: vcBehavior
Children -
Referenced by: -
Properties
Learn how to use properties here. The properties are also inherited from the parent class.
| Name | Type | Access | Description |
| Controller | object | RW | Defines the controller associated with the executor. |
| CurrentStatement | vcStatement | R | Gets the statement currently being executed by the executor. |
| DigitalInputSignals | vcBooleanSignalMap | RW | Defines the input signal device associated with the executor. |
| DigitalOutputSignals | vcBooleanSignalMap | RW | Defines the output signal device associated with the executor. |
| IsEnabled | Boolean | RW | Defines if the program is executed during simulation. |
| IsLooping | Boolean | RW | Defines if the executor loops its program. |
| Program | vcProgram | R | Gets the program associated with the executor. |
| StatementHandler | vcPythonProcessHandler | RW | Defines a process handler for controlling the execution of statements in robot program.See moreSee an example of modifying a point-to-point motion statement. Important: Process statements and Path statements with assigned process handlers are executed by their handlers. That is, those statements are not passed on to the statement handler of executor. Do not call nor try to execute them with the statement handler. |
| UseExternalExecutor | Boolean | RW | Defines if the component is controlled by external execution mechanism, for example a virtual robot controller. |
Methods
Learn how to use methods here. The methods are also inherited from the parent class.
| Name | Return Type | Parameters | Description |
| callRoutine | None | object routine, Optional Keyword[clearCallStack = Boolean] | Executes a routine. Python execution is not suspended while the routine is being executed. See moreIf suspending is desired then the caller has to implement waiting logic. For example using async-await with `await routine.OnScopeExecuted.wait()`. An optional clearCallStack argument can be given a False value, thereby the call stack of executor is not cleared before executing routine. |
| callStatement | None | vcStatement routine | Executes a routine. Python execution is not suspended while the routine is being executed. See moreIf suspending is desired then the caller has to implement waiting logic. For example using async-await with `await routine.OnScopeExecuted.wait()`. An optional clearCallStack argument can be given a False value, thereby the call stack of executor is not cleared before executing routine. |
Events
Learn how to use events here. The events are also inherited from the parent class.
| Name | Parameters | Description |
| OnPostExecuteStatement | None | Triggered after execution of a statement. |
| OnPreExecuteStatement | None | Triggered before execution of a statement.See moreThe isImmediate argument defines if the statement will be executed immediately (non time-consuming mode) |
| OnProgramFinished | None | Triggered when the execution of program has finished. |